package client;

import command.Command;
import command.impl.Move;
import command.impl.Run;
import command.impl.Stop;

public class KeyBoard {
    /**
     * 按下移动键
     */
    public Command pressW() {
       return new Move("向前");
    }

    public Command pressA() {
        return new Move("向左");
    }

    public Command pressS() {
        return new Move("向后");
    }

    public Command pressD() {
        return new Move("向右");
    }

    public Command pressRun() {
        return new Run();
    }

    public Command pressStop() {
        return new Stop();
    }

}
